package com.jy.event.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by lihu on 2017/9/12.
 */
@Component
public class SalesUrlUtil {

    @Value("${sales.address}")
    private String address;


    /**
     * 订单查询同步接口
     *
     * @return
     */
    public String getOrderSynch() {
        String url = address + "/v1/synch/PAYMENTID/order";
        return url;
    }


    /**
     * 提成记录接口
     *
     * @return
     */
    public String commissionUrl() {
        String url = address + "/api/v1/sales/commission";
        return url;
    }


}
